#coding: utf-8
import os
from mysite.settings import base_file_path
def file_read(filename):
    file_object = open(filename)
    all_the_text = file_object.read( )
    file_object.close()
    return all_the_text

def file_write(filename,all_the_text):
    file_object = open(filename, 'w')
    file_object.write(all_the_text)
    file_object.close()

def file_remove(filename):
    if os.path.exists(filename):
        os.remove(filename)
